import request from '@/utils/request'
import * as proxy from '@/constants/proxy'
import { exportMethod } from '@/utils/utils'

//锁定
export function getInnovativeTalentTeamLock(id: any) {
  return request({
    url: proxy.CHECC_API_CMS + `/kgptKjslTchieveDouble/locale?id=${id}`,
    method: 'post',
  })
}

//解锁
export function getInnovativeTalentTeamUnlock(id: any) {
  return request({
    url: proxy.CHECC_API_CMS + `/kgptKjslTchieveDouble/jslocale?id=${id}`,
    method: 'post',
  })
}

//删除
export function getKgptKjslTchieveSttransDelete(id: any) {
  return request({
    url: proxy.CHECC_API_CMS + `/kgptKjslTchieveSttrans/delete?id=${id}`,
    method: 'post',
  })
}

//确认
export function getInnovativeTalentTeamConfirm(id: any) {
  return request({
    url: proxy.CHECC_API_CMS + `/kjsl/InnovativeTalentTeam/confirm?id=${id}`,
    method: 'get',
  })
}
//导出
export function getExportInnovativeTalentTeam(data: any) {
  const params = {
    method: 'post',
    url: proxy.CHECC_API_CMS + '/kjsl/InnovativeTalentTeam/export',
    data: data,
  }
  return exportMethod(params)
}
//根据id获取详情
export function getInnovativeTalentTeamDetail(id: any) {
  return request({
    url: proxy.CHECC_API_CMS + `/kjsl/InnovativeTalentTeam/getDetailById/${id}`,
    method: 'get',
  })
}
